# Maintainer: Fucker <1876056356@qq.com>
# Contributor: Storm Dragon <stormdragon2976@gmail.com>
pkgname=sex
pkgver=1.0
pkgrel=1
pkgdesc="sex Chinese version(NOT DONE)"
url="http://spatula.net/software/sex"
license=('GPLv3')
arch=('any')
makedepends=('gcc' 'clang')
#source=(https://gitee.com/nidielaila/mock-dirty-words-generator/blob/master/sex-1.0.tar.gz) # TODO: change here
source=(https://gitee.com/nidielaila/mock-dirty-words-generator/raw/master/sex-1.0.tar.gz) # TODO: change here
md5sums=('SKIP')

build() {
  echo ${srcdir}
  echo $PWD
  cd ..
  tar -xvf sex-1.0.tar.gz
  gcc -o sc sex.c & clang -o sc sex.c
}

package() {
  echo ${srcdir}
  echo $PWD
  cd ..
  echo ${pkgdir}
  echo "[INFO]: I am not going to install in dir pkg, but /usr/local/bin"
  sudo install -Dm755 sc "/usr/local/bin/sc"
 # rm -rf sc* pkg src
}
